<template>
  <div>
    <p>当前系统版本: {{ $store.state.sysVersion }}</p>
    <p>上次登录时间: {{ $store.state.loginDate }}</p>
    <p>
      <button @click.prevent="onClickHandler" >登录</button>
    </p>
  </div>
</template>

<script>
import {
  // mapState,
  // mapMutations,
  // mapGetters,
  mapActions,
} from 'vuex';

export default {
  name: 'SystemInfo',
  methods: {
    ...mapActions([
      'login',
    ]),
    onClickHandler() {
      this.login(new Date());
    },
  },
};
</script>

<style>

</style>
